package com.example.administrator.bleapp.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.bleapp.R;
import com.vise.baseble.model.BluetoothLeDevice;

import java.util.List;

/**
 * Created by Administrator on 2017/12/17.
 */

public class BLELIstAdapter extends BaseQuickAdapter<BluetoothLeDevice,BaseViewHolder> {
    public BLELIstAdapter(@Nullable List<BluetoothLeDevice> data) {
        super(R.layout.item_ble_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BluetoothLeDevice item) {
        helper.setText(R.id.tv_name,item.getName()).setText(R.id.tv_address,item.getAddress());
    }
}
